package com.zhentao.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.zhentao.dto.ForgetPasswordDto;
import com.zhentao.dto.LoginFormDTO;
import com.zhentao.dto.UpdatePwdDto;
import com.zhentao.user.User;
import com.zhentao.utils.ResponseResult;

/**
* @author lenovo
* @description 针对表【tb_user】的数据库操作Service
* @createDate 2024-12-02 21:22:33
*/
public interface UserService extends IService<User> {

    ResponseResult login(User user);

    ResponseResult adminLogin(LoginFormDTO loginFormDTO);

    ResponseResult updatePassword(UpdatePwdDto updatePwdDto);

    ResponseResult sendCaptcha();

    ResponseResult forgetPassword(ForgetPasswordDto forgetPasswordDto);

    ResponseResult userInfo();

    ResponseResult logout(String token);
}
